﻿@model LeadMaster.Models.LeadsReplacement

@{
    ViewBag.Title = "Edit";
}

<div class="spacer"></div>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Edit Leads Replacement</legend>

        @Html.HiddenFor(model => model.LeadsReplacementID)
        <div class="editor-label">
            @Html.LabelFor(model => model.Title)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Title, new { @class="largetextbox"})
            @Html.ValidationMessageFor(model => model.Title)
        </div>
        <div class="spacer"></div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Description, new { @class="bignotes"})
            @Html.ValidationMessageFor(model => model.Description)
        </div>
        <div class="spacer"></div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Filename)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Filename)
            @Html.ValidationMessageFor(model => model.Filename)
        </div>
        <div class="spacer"></div>
        <div class="editor-label">
            @Html.LabelFor(model => model.DocType)
        </div>
        <div class="editor-field">
            @Html.RadioButtonFor(model => model.DocType, 'T') Text
            @Html.RadioButtonFor(model => model.DocType, 'P') PDF
            @Html.RadioButtonFor(model => model.DocType, 'W') Word
            @Html.ValidationMessageFor(model => model.DocType)
        </div>
        <div class="spacer"></div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Version)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Version)
            @Html.ValidationMessageFor(model => model.Version)
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
